//
//  Config.h
//
//  Created by rzhy.
//  Copyright © 2016年 Zy. All rights reserved.
//

#import <ZYTool/ZYTool.h>
#import "NSString+Zy.h"
#import "UIViewController+Zy.h"
#import "HTTPSTool.h"
#import "HTTPSPathString.h"
#import "ConfigKey.h"

// log
#if DEBUG
#define XHLog(fmt, ...) NSLog((@"%s""(%d)\n\t" fmt), __FUNCTION__, __LINE__, ##__VA_ARGS__);
#define LRString [NSString stringWithFormat:@"%s", __FILE__].lastPathComponent
#define LRLog(...) printf("%s: %s 第%d行: %s\n\n",[[NSString timeLogString] UTF8String], [LRString UTF8String] ,__LINE__, [[NSString stringWithFormat:__VA_ARGS__] UTF8String]);
static BOOL const isRelease = NO;
#else
#define XHLog(...)
#define LRLog(...)
static BOOL const isRelease = YES;
#endif

// screen
#define XHScreenWidth [UIScreen mainScreen].bounds.size.width
#define XHScreenHeight [UIScreen mainScreen].bounds.size.height

// color
#define RGBAColor(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:a]
#define RGBColor(r, g, b) RGBAColor(r, g, b, 1.0)
#define XHConfigColor RGBColor(125, 26, 31)

// File
#define XHUserPath [ZYFileManager getDocumentDirectoryWithFileName:@"XHUser.plist"]
#define XHPatientListPath [ZYFileManager getDocumentDirectoryWithFileName:@"XHPatient.plist"]

// iPhone
#define iPhoneSE XHScreenWidth == 320.0f && XHScreenHeight == 568.0f
#define iPhone6s XHScreenWidth == 375.0f && XHScreenHeight == 667.0f
#define iPhone6P XHScreenWidth == 414.0f && XHScreenHeight == 736.0f
#define iPhoneX  XHScreenWidth == 375.0f && XHScreenHeight == 812.0f

static NSString * const XHAlertMsg = @"该功能正在调整中!";
static NSString * const XHAppUrl = @"https://itunes.apple.com/cn/app/id1412631534";
static NSString * const XHEmptyDes = @"点击刷新!";
